package dreamtwodancetiktokenumsmymongo

const (
	DancePetTeamHostBattleLogTypeAttackEmptyCity = 1 //进攻空城
	DancePetTeamHostBattleLogTypeDefendCity      = 2 //守城
	DancePetTeamHostBattleLogTypeLeaveCity       = 3 //离开城池
	DancePetTeamHostBattleLogTypeDayClear        = 4 //日清
	DancePetTeamHostBattleLogTypeMonthClear      = 5 //月清
	DancePetTeamHostBattleLogTypeDissolveTeam    = 6 //解散战队

	// 战报结果
	BattleSuccess = 1 // 成功
	BattleFail    = 2 // 失败

	// 是否有奖励
	HasReward   = true  // 有奖励
	HasNoReward = false // 无奖励

	// 战报提示类型
	SlgHistoryTipTypeBeAttacked         = 1 //被打提示
	SlgHistoryTipTypeTeamHpEmpty        = 2 //队伍血量为0提示
	SlgHistoryTipTypeTeamUserPetApEmpty = 3 //宠物体力为0提示

	HostBattleLogStatusToday     = 1 // 今天
	HostBattleLogStatusYesterday = 2 // 昨天
)

type DancePetTeamHostBattleLogEnums struct {
}

var DancePetTeamHostBattleLogEnumsObject DancePetTeamHostBattleLogEnums

func (e DancePetTeamHostBattleLogEnums) ChangeType() []int {
	return []int{
		DancePetTeamHostBattleLogTypeAttackEmptyCity,
		DancePetTeamHostBattleLogTypeDefendCity,
		DancePetTeamHostBattleLogTypeLeaveCity,
		DancePetTeamHostBattleLogTypeDayClear,
		DancePetTeamHostBattleLogTypeMonthClear,
		DancePetTeamHostBattleLogTypeDissolveTeam,
	}
}

func (e DancePetTeamHostBattleLogEnums) ChangeTypeMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.ChangeType() {
		m[s] = e.ChangeTypeString(s)
	}
	return m
}

func (e DancePetTeamHostBattleLogEnums) ChangeTypeString(tag int) string {
	switch tag {
	case DancePetTeamHostBattleLogTypeAttackEmptyCity:
		return "进攻空城"
	case DancePetTeamHostBattleLogTypeDefendCity:
		return "守城"
	case DancePetTeamHostBattleLogTypeLeaveCity:
		return "离开城池"
	case DancePetTeamHostBattleLogTypeDayClear:
		return "日清"
	case DancePetTeamHostBattleLogTypeMonthClear:
		return "月清"
	case DancePetTeamHostBattleLogTypeDissolveTeam:
		return "解散战队"
	default:
		return "其他"
	}
}
